adding snippet