local array copies for recursion