cut out unnecessary components