removing unwanted values