remove fwrite