added tm handling to process_evaluations function