circle array is overflowing and writing bad data