added exponent functionallity