reports rewrite