preserve original length value
additional diagnostics