updating catch block