add faster implementation of rho method