write output error