finished background rewrite