add elevation calculation