updated population script