update before submint