removed energy functions