logic + magic