little change to query