added validGene code, not checked yet