added getArrays