simplification of the delete method