change beta value smaller to avoid error in optim function