works with enabled inlining