replaced List.removeRange call