update yasnippet prompt function