add formatting snippet