Fixed print to print both returned array and original array