added mod_exp_simple