added print statements to create the trace file