syntax error resolving