now returning rid