remove unwanted metadata