used to remove old data