how to evaluate a function ??