changed foreign keys