changed initPopulationTable function