changes in code for reaction / em printing