get the value of the function