updated foreignKey