improve document
remove redundancy code
remove redundancy option