handling fetch-joins