updated a snippet not quite
Some more changes