updated the score function -- no matrix inverse