table computation works