updated snippet with shorter shortcut