try catch on update