revised to use data from each dataset closest to cutoff