added setConstant to history array