remove extern references