working on delete method