Composition factors for indecomposable modules