box working with recursion