check the r code in md