fix array into array