expanded inline function, made variable public