switching to foreign-declar