writer for reader