apply range