added table functions