style
fix cppcheck warnings