remove global variables,add class static vars to instead