refactor
fix wrong output file name