refactor code style