re-added active elevation code