check for exceptional case total_length < 1