refine validate range