added error message for parser