rewrite beliefs