output to file added.
file output