in midst of rewrite