delete duplicating code in CompositionManager