removing unwanted metadata