fix the code by google cpp code style guide