add codesnippet