added all table functions