move try/catch block