add snippets; change some of the syntax
if alternative