delete some snippets. update xcode function