renamed dats vars to data