change to 1000 iterations max