reverted query change