removed 12k lines of RM