added a catch case