fix a bug: Not colSums! Use colMeans!!!