export genepop function