forgot to make output in every iterations in mode 1
bug fix
fixed the difference