rewrite accounts