not using data.table any more