implement raise function