Deleting all objects before adding themso there are no duplicates