global variables reduced