changed length of history array