try catch style fix