changes to Exception class