removed SH in comments. correct variable name bernoulli