fixed calculateLogLikelihoods function