added check for availability of inline function