revise output format and address keyword duplication issue