do not calculate length due to possible failure for large n