change rid to rd