max -> min in setting subsample size