update func Length.