In endothermic reactions energy is