probability calculation done