add h,s, and rho to the setTotalTP function