to solve GLOBALS not defined