fixed c snippets that i broke