added error scenario