added calculation of uv_Pstar, removing need to hard code it