ranking heuristics added