small query change