added new exception catch block