rewrite tabs