added new rim code