nn spectral experimental code