edited calc noise function
edited Noise calculation function