fixed inline function definitions