finished probability calculations