fixed warnings from clang