updated queryData to data