rewrite store