started working on delete function