changed query represenation