global variable refine