writing error