changed data to query