changed format for printTable