more changes to the noise function