implement subsample