cleaned up code for vcf reader