thetamax option added