added foreign key to join table