change associations and create join table