update before codeModel