fix code with clang code rules