move this outside of the try block