add cost, highlight fail