fix exponential functions