remove unused return val from subsample func