no need to compute the senquence to get the longest lenght