Sorted out RP and RO using absolute values for position, and RP=RP+1 or RP = RP+-1  for relative position