add new code snippet and upgrade file type