adding RD code