refactor outfile name