Added wrap function does not work for rep meth