s/(n-1)/n-1/ because it's cleaner