revise coding style