renamed also table-drawing method