begin work on subsample loop lengths