insertBeforeContainer suggestion implemented