fixed the optimal trials