move global variables ERROR