rm static var for thread safe