modified stalling code for large video sets.