add classes to base table
avoid doublecounting