adding try except to collection