new way to sample data.