minor optimizations
optimize component.remove()