raise error on min length > than max length
design update