rewriting bayesline