made the delete method