Changed the dy *=.9 to use the energyloss variable