update lengthNorm