fixed the foreign clause