fixed terrible bug.  redid rms