added 1 snippet and tweaked 2 old ones