cleaned up CostArray a bit