implement expansion for collections