modified the evaluation method