need to have a totally different function for TableOfRecord