make change in class Element for the issue of energy as argument