modified go snippets