performance improvement in likelihood calculus