revised population script