complete Table function