implement 3rd heuristic equation