working on implementing TableStats