added code for viewing energy 'conservation'