convert Append to non-inline function