minor changes in query.