output to file complete