improved style of code snippets