fixed factor of 2 in log likelihood function