added max chain