fivethree energy function