remove unused energy_distribution function