same as
https://github.com/cms-sw/cmssw/pull/1174/files#r7262725