rem doc