fix syntax errors refs #1