added factorial exponent and sqrt