move variable out of global space