changed rho variable to common rho