updated table helper method