inline function and use const