fixing process-file to write whole seq to file