added expansion of numCopies to array