add joined table