uncommented out line 390 modified_count variable as it was breaking a debug line