try/catch block added