use upper bound
ess -> 4000