locating syntax error