output the array