adding delete method