removes not needed components