inline fix for msvc