Title: Theory of the rippling instability in toroidal devices