making sure the old is gone before the new