fix prepare colletor func signature