new method for datatables