energy calculations added