rewrite continues...