replaced exception catching with Try