buggy calcprob calcavg