after study,update code