optimization of table