added error message to show method