then snippet