kludge in the perlin noise generator