remove unused data and clean annotations