remove writeRaw