adding rho_half variable