update code stat