create documentation for collate