added update code script