added max instance reducer