changed UltiSnips function