typo in list length check