update code helper