convert raise statements to  raise functions