limit max_iter to 5