rewrite rbfm