hopefully fixed snippets