removing unwated components