Rules of magic