fixes for boxed math