update code main programe