modified the char print routine.