simplified inject sum