corrected Length to length