rewrite extend system