update code safety