adding d0 and dZ