renamed some foreign keys