is this ok to now be outside the try catch?