change made to likelihood.score function