fix the issue that the errors often cannot be reduced in channel mode
remove the unused code
add performance testing