moving common indices to HGCSSDetector class