out.txt generation added