this can just be  length = len(recseg)