changed the code(String) to code(Writer)