// BUG: rd_data_r assigned incorrectly