changing genes constructor