error on printTable()