added error showing