starting delete function