replace extern with static