Change bpRID to RID, change parameter (bpRID* rid) to (RID rid)