working on table capacity algorithm, added tables to view