made some changes in update engine