refactor(when): update when snippet