remove puts() and putc()