some test rewrites