add break-out-of-a-recursion