better filtering of cost data