added try catch in collection