finally, bip rewrite done