Rewrite almost