move elevation calculations to modeling file