delete last line of energy data to match density data