improve snippet and add yas