inlined function definition