added NOResourceFunctionCode