length update