cleaning up snippets