todo operation with the small change in the delete operation