adding snippet doc