amend model relationship