genetic not working as expected