attempt at fixing clang warnings