Refine for global variable