changes delete function again