remove not used maxLength variable