changed query style