idle loop changed