changed model relationship to has many through