save snippets,accept arguments