now using pump energy from input file