update truoc khi delete