comment log code, add function into heuristic template