changed the iteration serach