add the joins.