add method for data.table