removed cost threshold dependency