cnn with dist