added some logic to reinitialise the collection