change exception handling format