updated reRouteRoute for input UID, RID