fixing build error with inlining