removing unwanted entries