add catching an exception