moved global variables