returns null when no snippets is found