limit the size of data by collect