fixed tree max_product