update csm collection logic