added fputc