A chemical reaction involves