static variable now be set by static method