update registercollections function