cycle array to save space? With error