delete unnecessary components