rewrite correction to use new history tracker