added check range with range