[refactoring]remove redundancy