add snippet output and adjust output formate