reduce history size