changed query data format