modify max using reduceLeft