changed total_density