remove at the specified index