build collections routine