work on file reader