magic theory and structure