changed arrays to 1d