'modify to depend on file-object'
depending on file-object