added max length