dphi values initialized as 0