tidy up code into snippets.git