added logic for Misc section; trouble with MathLogic