wrote output