added arg_adj function

also changed rsub function