added code for evaluating HOF