remove use of refvector
further speedup of HitPattern