update method snippets to be cleaner