code snapshot