added the repFlood method to test speed