added sorting and a check for the gene and transposon region