rewrites update