refact Global