decrease history size