another fix for cppcheck justice