syntax error checking appears to be working now