refactored elevation module