replace with static vars