refactored genotype data query..