history refactors