fix cost lookup