rearranged docs for ri