made function for exponent