disabled function inlining to escape msvc optimization problem