changed addWhiteNoise method, inserted density variable!