possibly resolving cppcheck problems