reformat all the code snippets