added error messages/productions