improve tabling