rewrite bip