adding affiliated tables