addition of energy and main frame