change nsample = 10 in log_const_theta