remove unnecessary components