added error handling message