revise code styling