changed the collector_id field from man2one to function