query corrections