refactored static variable