removing unnecessary blocks try/catch