update code variables