modified to have public snippets and not just private ones