starting rewrite
starting rewrite