modified to process large number of nFrames
conflict resolution