only set dphi if relevant