change the return value of update for deletion