population script fixed