find delete function error