change collection to data