updating history size