modify rid and implement insert in page