added exponential condition; got expiration code working