update exp function from incorrect version