calling the right build table functions