use rewrites