add some comment for Rim-function