delete function is now functioning