passes cppcheck with no errors/warnings