update code snap