change while (true)