cost logic
limit