added getArray()