adding population generation