improving noise to terrain function