oops  made a fix on the try/catch blocks