added error messages