query dep correction