modified to include snippets.