removing the unused data