modify some percolation stats code.