rudimentary gene implementation