adding try/catch