catch a possible exception in this part too