rewrite glue