start to range check function