Refactoring about code style