refactor fix bug in scalling
start history