added a second output file