remved redundent try/catch block