Title: Modeling advance and retreat of alpine and rock glaciers