correct output array