replace static variable