first simple rewrite