added an out file to do debugging