changing pipeline for removing unwanted objects