adjusting torches to the terrain