change s|getter to inline function