hist ext refact