add listLength attribute