why do we need to store a reference to the parentContainer?