refactor add and delete method