writing books output