Kabuto specifically said that he tweaked the technique to bring back Madara in his prime (or at least, with his best aspects. I don't know if he ever got his Rinnegan in his "prime"). What that involves.. we don't know.