writing errors