initialize global variables