simplify parse_range