add wrap function (unused)