modifying definition of table and output text