fixed the memory leak. the table does not rebuild itself eveytime as well.