update with data, data.table, averages, histogram