update rsub

used new function