removed spaces\nmoved writer::close() to private section