implements deleteRange