try-catch added

try-catch added