modity c snippets