added a delete method