costs are doubles, not ints