working version of gene extractor