example for passing variable into snippet