changes to buildTable