restrict to math mode