correct table printing