return subsample as integers