refine the code style