proper heightmap manipulation