switched to actual heuristic, now faster