OUTPUT TO TEMP FILE OUT