refactoring genetics; WIP