remove range by index