changed parameter names, added check_syntax