it gets rid of the unnecessary memories.