revise code style