Tese code for Isa_rs_raw