added new try and exception and removed cmmnt