replace with static variable