move arrays to main