changed print to printf in printTable