made global variables static