legal function value