score -> cost. Better notation.