clean up mathdox