removed dead code
removed dead code
improved perlin noise calculation