added locks when adding a collection of items