changing exception type