trying to make a method to facilitate swapping genes