added join rules