removing history analysis code