cleaning up popgen
some problems for work