r=R-x