remove use of dumb static variable