corrected array copies