code now works completely
adding original input file