add elevation compute logic