adding functions to rRho.scala