add idle and change query