history doesn't allocate a new array all the time