reduce the number of iteration