updated d0 calculations