rewrites updates