to prevent concurrent problem, these variables should be declared in a trait/class.