the score function now checks correctly for a bad value being passed to log