box rewrite