change code to rspcode