corrected raise condition