updated 'var' snippet