extern declarations fix