update code frame