refactoring against coverity issue 72438