added elevation function, now taking selected value