modified the rm class

added ix layer functions