training the D