evaluating functions for a given value