added new 'math' mode