working on delete functionality