add lapse rate calculations