fixed xinmin collector by replacing '->' with lambda