corrected throw statement