updated impute_ranges to process all chromosomes