maybe throw an error if removeIndex < 0?