documents label allocation