added maximum list length