update idle control code