use class variables instead of global variables