gets the value with a function