single collection to flat object