refactor 'drop row' operation