missing additional exit condition