fixed some inline function warnings