add snippet for while
update