clang format code
minor improvements