implemented computation of table row sizes