fixed try/catch section