correct data type for length.