fixing the cnn